import { Entity, Column } from 'typeorm';
import { Base } from './base.entity';
import { ApiProperty } from '@nestjs/swagger';

@Entity()
export class SysConfig extends Base {
  @Column()
  @ApiProperty({ title: '配置名' })
  name: string;

  @Column({ default: '' })
  @ApiProperty({ title: '配置标签名' })
  @Column()
  label?: string;

  @ApiProperty({ title: '开否开启' })
  @Column({ type: Number, default: 0 })
  is_open_charge?: number;

  @ApiProperty({ title: '是否删除' })
  @Column({ type: Number, default: 0 })
  isDelete?: string;
}
